import { ref } from 'vue'
/*
  pagination hooks
*/
export function usePageContent(callback: any) {
  const currentPage = ref(1)
  const pageSize = ref(10)
  function handleSizeChange(size: number) {
    pageSize.value = size
    callback()
  }
  function handleCurrentPage(page: number) {
    currentPage.value = page

    callback()
  }
  return { currentPage, pageSize, handleSizeChange, handleCurrentPage }
}
